import { QuestionCircleOutlined, BellOutlined } from '@ant-design/icons';
import { SelectLang as UmiSelectLang, useModel } from '@umijs/max';
import { Badge } from 'antd';
export type SiderTheme = 'light' | 'dark';

export const SelectLang = () => {
  return <UmiSelectLang />;
};
//帮助按钮
export const Question = () => {
  return (
    <div
      style={{
        display: 'flex',
        height: 26,
      }}
      onClick={() => {
        window.open('https://pro.ant.design/docs/getting-started');
      }}
    >
      <QuestionCircleOutlined />
    </div>
  );
};
//消息通知
export const Notification = () => {
  const { initialState } = useModel('@@initialState');
  // console.log(initialState);
  return <Badge count={initialState?.currentUserInfo?.unreadCount} showZero>
    <BellOutlined />
  </Badge>;
};
